package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchActualPressureDecayValuesMapper;
import com.ruoyi.system.domain.DispatchActualPressureDecayValues;
import com.ruoyi.system.service.IDispatchActualPressureDecayValuesService;

/**
 * 实际压力衰减值Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchActualPressureDecayValuesServiceImpl implements IDispatchActualPressureDecayValuesService 
{
    @Autowired
    private DispatchActualPressureDecayValuesMapper dispatchActualPressureDecayValuesMapper;

    /**
     * 查询实际压力衰减值
     * 
     * @param actualPressureDecayValuesId 实际压力衰减值主键
     * @return 实际压力衰减值
     */
    @Override
    public DispatchActualPressureDecayValues selectDispatchActualPressureDecayValuesByActualPressureDecayValuesId(Long actualPressureDecayValuesId)
    {
        return dispatchActualPressureDecayValuesMapper.selectDispatchActualPressureDecayValuesByActualPressureDecayValuesId(actualPressureDecayValuesId);
    }

    /**
     * 查询实际压力衰减值列表
     * 
     * @param dispatchActualPressureDecayValues 实际压力衰减值
     * @return 实际压力衰减值
     */
    @Override
    public List<DispatchActualPressureDecayValues> selectDispatchActualPressureDecayValuesList(DispatchActualPressureDecayValues dispatchActualPressureDecayValues)
    {
        return dispatchActualPressureDecayValuesMapper.selectDispatchActualPressureDecayValuesList(dispatchActualPressureDecayValues);
    }

    /**
     * 新增实际压力衰减值
     * 
     * @param dispatchActualPressureDecayValues 实际压力衰减值
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchActualPressureDecayValues(DispatchActualPressureDecayValues dispatchActualPressureDecayValues)
    {
        return dispatchActualPressureDecayValuesMapper.insertDispatchActualPressureDecayValues(dispatchActualPressureDecayValues);
    }

    /**
     * 修改实际压力衰减值
     * 
     * @param dispatchActualPressureDecayValues 实际压力衰减值
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchActualPressureDecayValues(DispatchActualPressureDecayValues dispatchActualPressureDecayValues)
    {
        return dispatchActualPressureDecayValuesMapper.updateDispatchActualPressureDecayValues(dispatchActualPressureDecayValues);
    }

    /**
     * 批量删除实际压力衰减值
     * 
     * @param actualPressureDecayValuesIds 需要删除的实际压力衰减值主键
     * @return 结果
     */
    @Override
    public int deleteDispatchActualPressureDecayValuesByActualPressureDecayValuesIds(Long[] actualPressureDecayValuesIds)
    {
        return dispatchActualPressureDecayValuesMapper.deleteDispatchActualPressureDecayValuesByActualPressureDecayValuesIds(actualPressureDecayValuesIds);
    }

    /**
     * 删除实际压力衰减值信息
     * 
     * @param actualPressureDecayValuesId 实际压力衰减值主键
     * @return 结果
     */
    @Override
    public int deleteDispatchActualPressureDecayValuesByActualPressureDecayValuesId(Long actualPressureDecayValuesId)
    {
        return dispatchActualPressureDecayValuesMapper.deleteDispatchActualPressureDecayValuesByActualPressureDecayValuesId(actualPressureDecayValuesId);
    }
}
